package com.pipi.sso.dao.manager;

import com.pipi.sso.dao.model.DormitoryAssetsDO;
import com.pipi.sso.dao.query.DormitoryAssetsQuery;
import com.pipi.sso.dao.support.PageResult;

import java.util.List;


/**
 * Manager for DormitoryAssets.
 */
public interface DormitoryAssetsManager {
    /**
     * query count by query condition.
     */
    int countByQuery(DormitoryAssetsQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(DormitoryAssetsQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(DormitoryAssetsDO record);

    /**
     * insert selective.
     */
    long insertSelective(DormitoryAssetsDO record);

    /**
     * select by query condition.
     */
    List<DormitoryAssetsDO> selectByQuery(DormitoryAssetsQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<DormitoryAssetsDO> selectByQueryWithPage(DormitoryAssetsQuery query);

    /**
     * select by primary key.
     */
    DormitoryAssetsDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( DormitoryAssetsDO record,  DormitoryAssetsQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(DormitoryAssetsDO record, DormitoryAssetsQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(DormitoryAssetsDO record);
}